package com.leo.apptest.utils;

import android.content.Context;
import android.util.DisplayMetrics;

/**
 * Created by zhangguobao on 16/11/14.
 */
public class AndroidUtils {
    public static int getDisplayWidth(Context context) {
        DisplayMetrics dm = context.getResources().getDisplayMetrics();
        return dm.widthPixels;
    }

    public static int getDisplayHeight(Context context) {
        DisplayMetrics dm = context.getResources().getDisplayMetrics();
        return dm.heightPixels;
    }
}
